package com.muqi.app.utils;

/**
 * 转化为汉字的工具类
 * 
 * @author smile_x
 * 
 */
public class ChineseUtils {
	public static String getSquality(String f, String s) {
		String str = "";
		if ("F1".equals(f)) {
			if ("s1".equals(s)) {
				str = "公益劳动（志愿服务)";
			} else if ("s2".equals(s)) {
				str = "学校党（团）及社团活动";
			} else if ("s3".equals(s)) {
				str = "民族团结及其他活动";
			}

		} else if ("F2".equals(f)) {
			if ("s1".equals(s)) {
				str = "必修课程";
			} else if ("s2".equals(s)) {
				str = "学业水平考试";
			} else if ("s3".equals(s)) {
				str = "选修课程";
			} else if ("s4".equals(s)) {
				str = "研究性学习";
			} else if ("s5".equals(s)) {
				str = "学科竞赛";
			}
		} else if ("F3".equals(f)) {
			if ("s1".equals(s)) {
				str = "体育爱好项目";
			} else if ("s2".equals(s)) {
				str = "体育特长项目";
			} else if ("s3".equals(s)) {
				str = "体测成绩";
			} else if ("s4".equals(s)) {
				str = "体育比赛";
			}

		} else if ("F4".equals(f)) {
			if ("s1".equals(s)) {
				str = "艺术活动";
			} else if ("s2".equals(s)) {
				str = "艺术活动获奖";
			}
		} else if ("F5".equals(f)) {
			if ("s2".equals(s)) {
				str = "军事训练";
			} else if ("s2".equals(s)) {
				str = "研究性调查";
			} else if ("s3".equals(s)) {
				str = "科技活动";
			} else if ("s4".equals(s)) {
				str = "创造发明";
			}
		}

		return str;
	}

	public static String getFquality(String F) {
		String str = "";
		if ("F1".equals(F)) {
			str = "思想品德";
		} else if ("F2".equals(F)) {
			str = "学业水平";
		} else if ("F3".equals(F)) {
			str = "身心健康";
		} else if ("F4".equals(F)) {
			str = "艺术素养";
		} else if ("F5".equals(F)) {
			str = "社会实践";
		}
		return str;
	}

	public static String getCreditType(String type, boolean isStudent) {

		String str = "";
		if ("classjob".equals(type)) {
			if (isStudent) {
				str = "家长陪伴";
			} else {
				str = "发布作业";
			}

		} else if ("message".equals(type)) {
			str = "发布通知";
		} else if ("growtree_clickclass".equals(type)) {
			str = "点赞班级";
		} else if ("growtree_clickstudent".equals(type)) {
			str = "点赞学生内容";
		} else if ("goods".equals(type)) {
			str = "商品兑换";
		}

		return str;

	}

	public static String getSexString(String str) {
		String sex = "";

		if ("male".equals(str)) {
			sex = "男";
		} else {
			sex = "女";
		}
		return sex;

	}

	public static String getSexType(String str) {
		String sex = "";

		if ("女".equals(str)) {
			sex = "female";
		} else {
			sex = "male";
		}
		return sex;

	}
	
	public static boolean isOk(String str){
		boolean f=false;
		if("n".equals(str)){
			f=false;
		}else{
			f=true;
		}
		return f;
	}
}
